﻿//Copyright@<2009> <Naveen>

// Concepts used: 
//Mono Output Datatype, 
//Mono-MySql Data Connection, 
//.net Methods and Classes,
//Statements and Exceptions
// .net Static Type

// Refernces: Microsoft Official Course: Programmin with C# 2124 C
//            Building .net Applications - Programing C#, by Jesse Liberty (O'Reilly)



using System;
using System.Data;
using MySql.Data.MySqlClient;


namespace ProjectMain
{
    public static class Program
    {
        
        public static void Main(string[] args)
        {

            string firstname;
            string lastname;

            System.Console.WriteLine(" --------------Welcome to EnterPrise Operations Management System (EPOMS) ------------------\n");


            int mainUserInput = MainMenu.MainMenuOptions();

            // Execute MainMenuUserInput
            switch (mainUserInput)
            {
                case 1:
                    //call method1 (Open New Account)

                    AccountClass.OpenNewAccount();


                    string username;
                    AccountClass.LoginAccount(out username, out firstname, out lastname);
                    System.Console.WriteLine("\nWhat would you like to do {0}, {1}?\n", firstname, lastname);

                    SubMenu.SubMenuOptions(username);

                    break;


                case 2:
                    // call method 2
                    Console.WriteLine("\nLoging in to the System...........\n");

                    
                    AccountClass.LoginAccount(out username, out firstname, out lastname);
                    System.Console.WriteLine("\nWhat would you like to do {0}, {1}?\n", firstname, lastname);

                    SubMenu.SubMenuOptions(username);

                    break;

                case 3:
                    // call method 3
                    break;

                default:
                    Console.WriteLine("\n {0} is not a valid choice\n", mainUserInput);

                    break;

            }

        }



    }


}
